package customer.zspt.cn.customer.utils;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by Administrator on 2018/6/12 0012.
 */

public class SPUtils {

    public static String getString(Context context,String key,String defaultValues)
    {
        SharedPreferences sp = context.getSharedPreferences("data", Context.MODE_PRIVATE);
        return sp.getString(key,defaultValues);
    }

    public static void setString(Context context,String key,String values)
    {
        SharedPreferences sp = context.getSharedPreferences("data",Context.MODE_PRIVATE);
        sp.edit().putString(key,values).commit();
    }

}
